package com.example.demo_job.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data // 可以自动添加get和set方法
@AllArgsConstructor  // 全参构造方法
@NoArgsConstructor   // 空参构造方法
public class RecruitSeekerComPos {
    //seeker
    private int sid;
    private String susername;
    private String sname;
    private int sedu;
    private String sgender;
    private String sphone;
    private String sinfo;
    //Company
    private int cid;
    private String cname;
    private String cinfo;
    private String cemail;
    private String cphone;
    //Recruit
    private int pid;
    private boolean flag;
    //Position
    private String pname;
    private String pinfo;
    private String paddress;
    public RecruitSeekerComPos(Recruit recruit,Seeker seeker,Company company,Position position){
        this.pid=recruit.getPid();
        this.flag=recruit.isFlag();
        this.sid=seeker.getSid();
        this.susername=seeker.getSusername();
        this.sname=seeker.getSname();
        this.sedu=seeker.getSedu();
        this.sgender=seeker.getSgender();
        this.sphone=seeker.getSphone();
        this.sinfo=seeker.getSinfo();
        this.cid=company.getCid();
        this.cname=company.getCname();
        this.cinfo=company.getCinfo();
        this.cemail=company.getCemail();
        this.cphone=company.getCphone();
        this.pname=position.getPname();
        this.pinfo=position.getPinfo();
        this.paddress=position.getPaddress();
    }
}
